package com.tedu.openmedical.config;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class LogTestComponent {

    private static final Logger LOGGER = LoggerFactory.getLogger(LogTestComponent.class);

//    @Value("${test.property}")
    private String testProperty;

    public void printLogs() {
        log.debug("This is a debug log");
        LOGGER.debug("This is a debug log");
        System.out.println("Test Property: " + testProperty);
    }
}
